<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>资源线索</title>
		<link rel="stylesheet" type="text/css" href="layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="css/index.css" />
		<link rel="stylesheet" type="text/css" href="css/_reset.css" />
		<link rel="stylesheet" type="text/css" href="css/common.css" />
	</head>
	<style type="text/css">
		.tltbox {
			margin-bottom: 15px;
			line-height: 30px;
			border-bottom: 1px solid #e6e6e6;
			position: relative;
		}
		
		#demo2 img {
			width: 80px;
			height: 80px;
		}
		
		.layui-upload {
			margin-left: 20px;
		}
		
		.layui-tab {
			padding: 0 10px;
		}
	</style>

	<body>
		<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
			<ul class="layui-tab-title">
				<li class="layui-this">大厅公告图片</li>
				<li>联系客服图片</li>
				<li>帮助说明图片</li>
				<li>代理平台公告</li>
			</ul>
			<div class="layui-tab-content">
				<div class="layui-tab-item layui-show">
					<div class="layui-upload">
						<button type="button" class="layui-btn" id="test2">上传</button>
						<blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
							预览图1：
							<div class="layui-upload-list" id="demo2"></div>
						</blockquote>
					</div>
				</div>
				<!--联系客服图片上传-->
				<div class="layui-tab-item">
					<div class="layui-upload">
						<button type="button" class="layui-btn" id="test2">上传</button>
						<blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
							预览图2：
							<div class="layui-upload-list" id="demo2"></div>
						</blockquote>
					</div>
				</div>
				<!--帮助说明图片上传-->
				<div class="layui-tab-item">
					<div class="layui-upload">
						<button type="button" class="layui-btn" id="test2">上传</button>
						<blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
							预览图3：
							<div class="layui-upload-list" id="demo3"></div>
						</blockquote>
					</div>
				</div>
				<!--代理平台公告图片上传-->
				<div class="layui-tab-item">
					<div class="layui-upload">
						<button type="button" class="layui-btn" id="test2">上传</button>
						<blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
							预览图4：
							<div class="layui-upload-list" id="demo4"></div>
						</blockquote>
					</div>
				</div>
			</div>
		</div>

	</body>
	<script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/header.js" type="text/javascript" charset="utf-8"></script>
	<script src="layui/layui.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/testuser.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/index.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		$(".layui-tab-title li").click(function() {
			var picTabNum = $(this).index();
			console.log(picTabNum);
			sessionStorage.setItem("picTabNum", picTabNum);
		});
		$(function() {
			var getPicTabNum = sessionStorage.getItem("picTabNum");
			console.log(getPicTabNum)
			$(".layui-tab-title li").eq(getPicTabNum).addClass("layui-this").siblings().removeClass("layui-this");
			$(".layui-tab-content>div").eq(getPicTabNum).addClass("layui-show").siblings().removeClass("layui-show");
		})
	</script>

</html>